<?php
namespace FoxLib\Exceptions;

use Symfony\Component\HttpKernel\Exception\HttpException;

class InternalServiceException extends HttpException
{
    protected $message = '调用内部服务出错';
    protected $code = 'internal.service.error';

    public function __construct($message = null)
    {
        if ($message) {
            $this->message = $this->message . ':' . $message;
        }
        parent::__construct(400, $this->message);
    }
}
